﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EMapPointType extends Object
    {
        public var __value:int;
        public static const _EMapPointNoActive:int = 0;
        public static const _EMapPointCanFly:int = 1;
        public static const _EMapPointCanJump:int = 2;
        public static const _EMapPointCanAttack:int = 3;
        public static const _EMapPointCanWalk:int = 4;
        public static const _EMapPointNormal:int = 5;
        public static const _EMapPointTransparent:int = 6;
        public static const _EMapPointSwin:int = 7;
        public static const _EMapPointBusiness:int = 8;
        public static const _EMapPointMeditation:int = 9;
        public static const _EMapPointFish:int = 10;
        public static const _EMapPointSafe:int = 11;
        public static const _EMapPointSafeServer:int = 12;
        public static const _EMapPointSafeRevivalA:int = 13;
        public static const _EMapPointSafeRevivalB:int = 14;
        public static const _EMapPointSafeRevivalC:int = 15;
        public static const _EMapPointSafeRevivalPub:int = 16;
        public static const _EMapPointMainCityFlag:int = 17;
        public static const _EMapPointRevivalA:int = 19;
        public static const _EMapPointRevivalB:int = 20;
        public static const _EMapPointRevivalC:int = 21;
        public static const _EMapPointRevivalPub:int = 22;
        public static const _EMapPointArenaBornA:int = 23;
        public static const _EMapPointArenaBornB:int = 24;
        public static const _EMapPointSafeRevivalD:int = 25;
        public static const _EMapPointSafeRevivalE:int = 26;
        public static const _EMapPointSafeRevivalF:int = 27;
        public static const _EMapPointQuestA:int = 28;
        public static const _EMapPointQuestB:int = 29;

        public function EMapPointType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EMapPointType
        {
            return new EMapPointType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EMapPointType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 30)
            {
                throw new MarshalException();
            }
            return EMapPointType.convert(_loc_2);
        }// end function

    }
}
